/*
 * @ : Copyright (c) 2021 Phytium Information Technology, Inc. 
 *  
 * SPDX-License-Identifier: Apache-2.0.
 * 
 * @Date: 2021-09-15 19:45:39
 * @LastEditTime: 2021-09-16 08:44:29
 * @Description:  This files is for 
 * 
 * @Modify History: 
 *  Ver   Who        Date         Changes
 * ----- ------     --------    --------------------------------------
 */
#include "parameters.h"
#include "f_sdio.h"
#include "f_sdio_hw.h"

extern const FSdioConfig sdio_cfg_tbl[FSDIO_HOST_INSTANCE_NUM];
const FSdioConfig *FSdioLookupConfig(u32 instance_id)
{
    const FSdioConfig *config_p = NULL;
    u32 index;

    for (index = 0; index < FSDIO_HOST_INSTANCE_NUM; index++)
    {
        if (sdio_cfg_tbl[index].instance_id == instance_id)
        {
            config_p = &sdio_cfg_tbl[index];
            break;
        }
    }

    return config_p;    
}